package com.example.weiting.huishenghuo.utils;

import java.io.Serializable;
import java.util.Calendar;
import java.util.Date;

public class Message implements Serializable {

    Date date;
    String thing;
    int zhuangTai;

    public Message(){ }

    public Message(String thing, int zhuangTai) {
        Calendar calendar = Calendar.getInstance();
        Date time = calendar.getTime();
        this.date = time;
        this.thing = thing;
        this.zhuangTai = zhuangTai;
    }

    @Override
    public String toString() {
        return "message{" +
                "date=" + date +
                ", thing='" + thing + '\'' +
                ", zhuangTai='" + zhuangTai + '\'' +
                '}';
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getThing() {
        return thing;
    }

    public void setThing(String thing) {
        this.thing = thing;
    }

    public int getZhuangTai() {
        return zhuangTai;
    }

    public void setZhuangTai(int zhuangTai) {
        this.zhuangTai = zhuangTai;
    }
}
